<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>机构管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/lib/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/lib/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="./user.css">
</head>
<body>

<div class="layui-fluid" id="LAY-component-grid-mobile">
    <div class="layui-row layui-col-space10">
        <div class="layui-col-xs3">
            <div class="layui-card">
                <div class="layui-card-header">机构</div>
                <div class="layui-card-body" style="overflow:auto; height: 700px;">
                    <form class="layui-form">
                        <div class="layui-form-item">
                            <div id="orgTree"></div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="layui-col-xs9">
            <div class="layui-card">
                <div class="layui-card-header" style="display: flex; flex-direction: row">
                    <div class="memberText" style="width: 20%;"></div>
                    <div class="leaderText" style="width: 80%;overflow: auto"></div>
                </div>
                <div class="layui-card-body">
                    <table style="width:98%; table-layout:fixed; margin-left: 15px;">
                        <tr>
                            <td style='width:80px'>
                                <a id="addBtn" class="layui-btn layui-btn-sm" onclick="addUser()"> <i
                                        class="layui-icon">&#xe654;</i> 增加</a>
                            </td>
                            <td style='width:80px'>
                                <a id="reloadBtn" class="layui-btn layui-btn-sm" onclick="refresh()"> <i
                                        class="layui-icon">&#xe9aa;</i> 刷新</a>
                            </td>
                            <td>
                                <a id="recycleBtn" class="layui-btn layui-btn-sm" onclick="userRecycle()"> <i
                                        class="layui-icon">&#xe640;</i> 回收站</a>
                            </td>
                            <!---请手动修改各个查询列宽度，建议都设数字；---->
                            <td style='width:50px'>姓名：</td>
                            <td style='width:120px'>
                                <input type="text" id="selectUserName" placeholder="请输入姓名" class="layui-input">
                            </td>
                            <td style="white-space:nowrap;text-align:right;width:80px;">
                                <a class="layui-btn layui-btn-sm" onclick="usersearch()"> <i
                                        class="layui-icon">&#xe615;</i>查询</a>
                            </td>
                        </tr>
                    </table>

                    <table class="layui-hide" id="sysuser" lay-filter="sysuser" style="margin-top: 15px"></table>

                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-xs" lay-event="info">查看菜单</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script type="text/html" id="postTpl">
    {{#  if(d.postList.length > 0){ }}
    {{#  for(var i = 0; i < d.postList.length; i++){ }}
    {{#  if(i > 0){ }}
    <br />
    {{#  } }}
    {{ d.postList[i].orgName }}-{{d.postList[i].postName}}
    {{#  if(d.postList[i].flag == 1){ }}
        <span style="color: #FF5722;">（主岗位）</span>
    {{#  } else { }}
        <span style="color: #009688;">（副岗位）</span>
    {{#  } }}
    {{#  } }}
    {{#  } }}
</script>
<script type="text/html" id="sexTpl">
    {{#  if(d.userSex === 1){ }}
    <span style="color: #009688;">女</span>
    {{#  } else { }}
    <span>男</span>
    {{#  } }}
</script>

<script type="text/html" id="telTpl">
    {{#  if(d.userPhone == null || d.userPhone == ""){ }}
    <span style="color: #009688;">—</span>
    {{#  } else { }}
    <span>{{ d.userPhone}}</span>
    {{#  } }}
</script>

<script src="/static/lib/layuiadmin/layui/layui.js"></script>
<script src="user.js"></script>
</body>
</html>